/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.header;

import com.lap.auth.adapter.driving.persistence.header.po.HeaderPo;
import com.lap.auth.domain.header.Header;
import java.util.List;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;

@Mapper(componentModel = "spring")
public interface HeaderConverter {

  @Mapping(target = "event", ignore = true)
  Header toDomain(HeaderPo headerPo);

  List<Header> toDomains(List<HeaderPo> list);

  HeaderPo toPo(Header header);

  List<HeaderPo> toPoList(List<Header> list);
}
